{extend name="public/base" /} {block name="body"}
<section class="content-header">
  <h1>
    系统设置
    <small>系统相关信息设置</small>
  </h1>
  <ol class="breadcrumb">
    <li><a href="{:url('/')}"><i class="fa fa-dashboard"></i> 面板</a></li>
    <li class="active">系统设置</li>
  </ol>
</section>
<section class="content">
  <div class="box">
    <div class="box-header">
      <a href="{:url('category_add')}" class="btn btn-success"><i class="fa fa-plus"></i>添加排污指标类别</a>
    </div>
    <!-- /.box-header -->
    <div class="box-body no-padding">
      <table class="table table-striped">
        <tbody>
          <tr>
            <th>ID</th>
            <th>分类名称</th>
            <th>分类描述</th>
            <th>排序</th>
            <th>是否启用</th>
            <th>操作</th>
          </tr>
          {volist name="list" id="item"}
          <tr>
            <td>{$item.id}</td>
            <td>{$item.name}</td>
            <td>{$item.description}</td>
            <td>{$item.sort}</td>
            <td>{eq name="item.status" value="1"}启用{else /}禁用{/eq}</td>
            <td>
              <a href="{:url('category_edit',['id'=>$item['id']])}" class="btn btn-info btn-xs"><i class="fa fa-edit"></i>编辑</a>
              <a href="{:url('category_delete',['id'=>$item['id']])}" class="btn btn-danger btn-xs"><i class="fa fa-trash"></i>删除</a>
            </td>
          </tr>
          {/volist}

        </tbody>
      </table>
    </div>
    <!-- /.box-body -->
    <div class="box-footer ">
      {$list->render()}
    </div>
    <!-- /.box-body -->
  </div>
</section>
{/block} {block name="scripts"}{/block}